package com.hsjk.szwj.module.pay.constant;

/**
 * @author chenjiawei
 * @desc
 * @Date 2023/08/22 01:48
 **/
public class PayOrderConstant {
    //-------------订单状态-------------------
    //订单生成
    public static final int STATE_INIT = 0;
    //支付中
    public static final int STATE_ING = 1;
    //支付成功
    public static final int STATE_SUCCESS = 2;
    //支付失败
    public static final int STATE_FAIL = 3;
    //已撤销
    public static final int STATE_CANCEL = 4;
    //已退款
    public static final int STATE_REFUND = 5;
    //订单关闭
    public static final int STATE_CLOSED = 6;

    //-------------分账模式-------------------
    //该笔订单不允许分账
    public static final int DIVISION_MODE_FORBID = 0;
    //支付成功按配置自动完成分账
    public static final int DIVISION_MODE_AUTO = 1;
    //商户手动分账(解冻商户金额)
    public static final int DIVISION_MODE_MANUAL = 2;

    //-------------分账状态-------------------
    //未发生分账
    public static final int DIVISION_STATE_UNHAPPEN = 0;
    //等待分账任务处理
    public static final int DIVISION_STATE_WAIT_TASK = 1;
    //分账处理中
    public static final int DIVISION_STATE_ING = 2;
    //分账任务已结束(不体现状态)
    public static final int DIVISION_STATE_FINISH = 3;

    //-------------退款状态-------------------
    //未发生实际退款
    public static final byte REFUND_STATE_NONE = 0;
    //部分退款
    public static final byte REFUND_STATE_SUB = 1;
    //全额退款
    public static final byte REFUND_STATE_ALL = 2;
}
